<h2>Pemesanan</h2>
<br></br>
<table>
      <tr>
          <td width="400">
                      <form class="form-horizontal" method="post" action="<?= base_url() ?>index.php/dashboard/insertpesanan" enctype="multipart/form-data">
                          <div>
                              <input type="text" class="hidden" name="nama_produk" value="<?php echo ($detail['gambar']);?>">
                              <input type="text" class="hidden" name="id_produk" value="<?php echo ($detail['id_produk']);?>">
                          </div>
                          <div>
                              <label>Nama Pemesan</label>
                              <input type="text" class="form-control" name="namapemesan">
                          </div>
                          <div>
                              <label>Alamat</label>
                              <textarea class="form-control" name="alamat"></textarea>
                          </div>
                          <div>
                              <label>No Telp</label>
                              <input type="text" class="form-control" name="telp">
                          </div>
                          <div>
                              <label>E-Mail</label>
                              <input type="text" class="form-control" name="email">
                          </div>
                          <label>Kota</label>
                          <select class="btn btn-default" name="kota">

                              <option value="">Pilih Kota</option>
                              <?php foreach ($getkota as $k):?>
                              <option value="<?php echo $k->id_kota;?>"><?php echo $k->nama_kota;?></option>
                              <?php endforeach?>
                          </select>
                          <br></br>
                          <div class="form" style="text-align:center">
                              <button type="submit" class="btn btn-primary" onclick="return alert('Data disimpan')">Submit</button>
                              <button type="reset" class="btn">Reset</button>
                          </div>
                      </form>
                      <br></br>
              </td>
              <td width="400">
                  
                  <img src="<?php echo base_url('assets/img/'.($detail['gambar']));?>" width="380" height="380" >
                  <h4><?php echo ($detail['nama_produk'])?></h4>
                  <h4>Harga : <?php echo($detail['harga'])?></h4>
              </td>
          </tr>
</table>

